package com.pkk.components.encryption.factory;

/**
 * @description: jasypt加密接口类
 * @author: peikunkun
 * @create: 2019-07-30 18:34
 **/
public interface JasyptEncryFactoryInterface {


  /**
   * @Description:获取加密的抽象工厂
   * @Param: [salt:盐]
   * @return: com.pkk.components.encryption.factory.JasyptEncryFactoryInterface
   * @Author: peikunkun
   * @Date: 2019/7/30 0030 下午 6:37
   */
  JasyptEncryFactoryInterface getInstance(String salt);


  /**
   * @Description:进行编码
   * @Param: [encode]
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2019/7/30 0030 下午 6:54
   */
  String encode(String encode);

  /**
   * @Description:进行编码
   * @Param: [encode]
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2019/7/30 0030 下午 6:54
   */
  String decode(String decode);

  /**
   * 使用说明
   */
  void readme();
}
